package univer.oko.queryAnalizer.sqlEditor.actions;

import javax.swing.*;

/**
 * Created by Sergey Kharlamov.
 * Date: 23.07.2006
 * Time: 17:58:40
 */
public abstract class AbstractControlAction extends AbstractAction {

    public AbstractControlAction() {
    }

    public AbstractControlAction(String text) {
        super(text);
    }

    public AbstractControlAction(String text, boolean enable, KeyStroke stroke, int mnemonic, Icon icon) {
        super(text);
        this.setEnabled(enable);
        this.putValue(Action.ACCELERATOR_KEY, stroke);
        this.putValue(Action.SMALL_ICON, icon);
        this.putValue(Action.MNEMONIC_KEY, new Integer(mnemonic));
    }

}
